package per.ethan.ssm.service.impl;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import per.ethan.ssm.entity.User;
import per.ethan.ssm.mapper.BaseMapper;
import per.ethan.ssm.mapper.UserMapper;
import per.ethan.ssm.service.UserService;

/**
* @author Ethan
* @date 2020/04/28 11:11
*/
@Slf4j
@Service("userService")
@RequiredArgsConstructor(onConstructor_ = @Autowired)
public class UserServiceImpl extends BaseServiceImpl<User> implements UserService {

    @Qualifier("userMapper")
    private final UserMapper userMapper;

    @Override
    public BaseMapper<User> getBaseMapper() {
        return userMapper;
    }

}
